package com.pwt.repository;

import com.pwt.repository.base.BaseRepository;
import com.pwt.entity.MachineProduct;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * MachineProduct Repository层
 *
 * @author auto generated
 * @date 2021-08-31 12:03:28
 */
public interface MachineProductRepository extends BaseRepository<MachineProduct, String> {

    @Query(value = "delete from [machine_product] where machine_manage_id =?1",nativeQuery = true)
    @Modifying
    public void deleteByMachineId(String machineId);

}
